{% extends "master.html" %}
{% block subtitle %} - 会员管理 - 会员详情{% endblock %}
{% block extJS %}
<script>
$(function() {
    
})
</script>
{% endblock %}
{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
            <li><a href="{{url_for('bpRoot.view')}}">主面板</a></li>
            <li><a href="{{url_for('.view')}}">会员管理</a></li>
            <li class="active">会员详情</li>
        </ol>
    </div>
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">会员详情</a></li>
        <li><a href="{{url_for('.view', action='viewLog', id=obj.id)}}">日志记录</a></li>
        <li><a href="{{url_for('.view', action='viewSO', id=obj.id)}}">购买记录</a></li>
    </ul>
    <div class="row">
        <div class="btn-toolbar pull-right">
            {% if obj.editable() %}
                <div class="btn-group"><a class="btn btn-default" href="{{url_for('.view', action='edit', id=obj.id)}}">编辑</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row form-horizontal">
        <div class='form3'>
            <div class="control-group">
                <label class="control-label">姓名</label>
                <div class="controls">{{ obj.name if obj.name }}</div>
            </div>
            <div class="control-group">
                <label class="control-label">电话</label>
                <div class="controls">{{ obj.mobile if obj.mobile }}</div>
            </div>
            <div class="control-group">
                <label class="control-label">地址</label>
                <div class="controls">{{ obj.address if obj.address }}</div>
            </div>
        </div>
        <div class='form3'>
            <div class="control-group">
                <label class="control-label">加入日期</label>
                <div class="controls">{{ now()|fd }}</div>
            </div>
            <div class="control-group">
                <label class="control-label">店号</label>
                <div class="controls">{{ shop.no }}</div>
            </div>
            <div class="control-group">
                <label class="control-label">员工</label>
                <div class="controls"></div>
            </div>
        </div>
        <div class='form3'>
            <label class="control-label">备注</label>
            <div class="controls">{{obj.remark}}</div>
        </div>
    </div>
</div>
{% endblock %}